texture: Refactor gdk_texture_new_from_bytes()
authorBenjamin Otte <otte@redhat.com>
Fri, 17 Sep 2021 01:42:27 +0000 (03:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 17 Sep 2021 02:31:46 +0000 (04:31 +0200)
commitfae32846c70069ae236afa93c562287ac6e8e9ad
treebd9899f9570c10b2e3944842f8d4b621628ff14e
parentb271a94f927c2b7b0c42e58be61d6fdb44480b99
texture: Refactor gdk_texture_new_from_bytes()

1. Split into a real loader and a fake one

2. Only try the fake one if the real one doesn't support the file.
gdk/gdktexture.c